package com.itheima.demo01.File;

import java.io.File;

public class Demo02File {
    public static void main(String[] args) {
//        show01();
//        show02("D:\\Java-Code\\day08_FileAndRecursion","a.txt");
        show03();
    }

    public static void show01() {
        File f1 = new File("D:\\Java-Code\\day08_FileAndRecursion\\a.txt");
        System.out.println(f1);
        File f2 = new File("D:\\Java-Code\\day08_FileAndRecursion\\shuangyuan");
        System.out.println(f2);
        File f3 = new File("day08_FileAndRecursion\\b.txt");
        System.out.println(f3);
    }

    public static void show02(String parent, String child) {
        File file = new File(parent, child);
        System.out.println(file);
    }

    public static void show03() {
        File parent = new File("D:\\Java-Code\\day08_FileAndRecursion");
        File file = new File(parent, "hello.java");
        System.out.println(file);
    }
}
